﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using Sparrow.VisualStudio.Debugger.RouteVisualizer;

namespace Tester
{
    class Program
    {
        static void Main(string[] args)
        {
            var home = new Route("home/{action}/{id}", new StopRoutingHandler());
            home.DataTokens = new RouteValueDictionary();
            home.DataTokens.Add("Namespaces", new string[] {"Sprarrow.*" });
            RouteTable.Routes.Add(home);
            RouteTable.Routes.Add(new Route("news/{action}", new StopRoutingHandler()));
            RouteTable.Routes.Add(new Route("{controller}/{action}/{id}", new StopRoutingHandler()));
            RouteTable.Routes.Ignore("ignore/lib.js");

            Visualizer.TestShowVisualizer(RouteTable.Routes);


            Console.ReadLine();
        }
    }
}
